package com.yun.space.service.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.stereotype.Service;

import com.yun.space.base.BaseDaoImpl;
import com.yun.space.entity.MainContent;
import com.yun.space.entity.Projects;
import com.yun.space.service.ProjectService;

/**
 * 平台建设接口DAO接口（ Project 实体类 ）实现类
 * @author CodingFanlt
 *
 */
@Service
@Transactional
public class ProjectServiceImpl extends BaseDaoImpl<Projects> implements ProjectService{
	/**
	 * 通过id查询实体类 Project（内容）
	 * @author CodingFanlt
	 */
	public List<Projects> findById(Integer id) {
		return getSession().createQuery("from projectI where id = ?").setInteger(0, id).list();
	}
}
